import { Engine } from '../engine';

export class FundAccountFilter {
    constructor({ storeId = null } = {}) {
        this.storeId = storeId ?? Engine.profile?.filterStore?.id ?? null;
    }

    static clone(filter) {
        return new FundAccountFilter({ storeId: filter.storeId });
    }

    toJson() {
        const ret = {};
        if (this.storeId) {
            ret['storeId'] = this.storeId;
        }
        return ret;
    }
}
